import request from '@/utils/request'

/**
 * 获取流程节点列表
 * @param {String} proDefId 流程定义编号
 */
export function getNodeList (proDefId) {
  return request({
    url: '/activiti/node/list/' + `${proDefId}`,
    method: 'get'
  })
}
export function getNodeInfo (nodeId) {
  return request({
    url: '/activiti/node/get/' + `${nodeId}`,
    method: 'get'
  })
}
export function updateNodeInfo (parameter) {
  return request({
    url: '/activiti/node/update',
    method: 'post',
    data: parameter
  })
}
